package com.bigData.main.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "car_statistics")
public class CarStatistics {
    @Id
    private Long id;
    @Column(name = "car_name")
    private String carName;  // 车名
    private String color;  // 颜色
    private String storage;   // 存储地址

    //    @Convert(converter = BooleanToIntegerConverter.class)
    @Column(nullable = true)  // 显式设置为允许为空
    private String status; // 状态，0: 未卖出, 1: 已卖出

    @Column(name = "total_quantity", nullable = true)
    private int totalQuantity;  // 价格 // 允许为空的整数字段

}
